<?php
/* -----------------------------------------------------------------
 *                          Aveghe Installer
 * -----------------------------------------------------------------
 * Aveghe Installer: made your web application installation easy!
 * Copyright (C) 2008 Elia Contini
 * 
 * Aveghe Installer is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 * 
 * Aveghe Installer is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 * MA 02110-1301, USA.
 */

$theme = "resources/themes/aveghe/template.xhtml";
$meta = "<meta http-equiv=\"Content-Type\" content=\"application/xhtml+xml; charset=UTF-8\" />\n";

if ( stristr($_SERVER["HTTP_ACCEPT"],"application/xhtml+xml")) 
	header("Content-type: application/xhtml+xml");
else
	{
		header("Content-type: text/html");
		$meta = "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n";
	}

$message       = '';

$content = <<< CONTENT
		
	<form action="createUser.php" method="post">
		<fieldset>
			<legend>Crea Utente</legend>
			<p class="borderTop">
				<label for="user_login">Username</label>
				<input id="user_login" name="user_login" type="text" />
				
				<label for="user_email">E-Mail</label>
				<input id="user_email" name="user_email" type="text" />
				
				<label for="user_password">Password</label>
				<input id="user_password" name="user_password" type="password" />
				
				<label for="user_password_check">Reinserisci la password</label>
				<input id="user_password_check" name="user_password_check" type="password" />
				
				<input class="submit" type="submit" value="Crea utente" />
			</p>
		</fieldset>
	</form>

CONTENT;
	
include($theme);
?>